/*
 * @Author: xiaosihan 
 * @Date: 2024-06-21 20:33:49 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-07-14 20:55:32
 */

import { autorun } from "mobx";
import { ReactNode, useEffect, useRef, useState } from "react";
import styles from "./footer.module.less";
import logoPNG from "./logo.png";
import hashHistory from "@hashHistory";
import utils from "@utils";
import { LazyLoadImage } from 'react-lazy-load-image-component';

interface Iprops {
    children?: ReactNode
}

// 脚部位
export default function Footer() {
    return (
        <div className={styles.footer} >
            <div className={styles.text} >资源</div>
            {/* <div className={styles.text} >社区</div> */}
            <div
                className={styles.text}
                onClick={() => {
                    if (utils.isDev) {
                        window.open("http://127.0.0.1:5333/#/factory", '_blank');
                    } else if (utils.isTest) {
                        window.open("http://company.test.open3dcloud.com/#/factory", '_blank');
                    } else if (utils.isProd) {
                        //window.open("http://company.open3dcloud.com/#/factory", '_blank');
                    }
                }}
            >工厂端</div>
            {!utils.isProd && <div
                className={styles.text}
                onClick={() => {
                    if (utils.isDev) {
                        window.open("http://192.168.0.123:5333/#/admin");
                    } else if (utils.isTest) {
                        window.open("http://admin.test.open3dcloud.com/#/admin");
                    } else if (utils.isProd) {
                        window.open("http://admin.open3dcloudc.com/#/admin");
                    }
                }}
            >后台管理</div>}
            <div className={styles.text} >关于我们</div>
            <div className={styles.text} >地址:中国(四川)自由贸易试验区成都高新区世纪城南路599号5栋负一层A10号</div>
            <div className={styles.text} >© 2024 .KLBG 版权所有。</div>
            <div className={styles.text} >服务热线18516888512</div>
            <LazyLoadImage className={styles.logo} src={logoPNG} alt="" />
        </div>
    );
}